SMAHB00801_종합판정문구관리[공단건진].xrw 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * 제 목 : SMAHB00800.xrw
  4. * 설 명 : 종합판정문구관리
  5. * 설 계 자 : 손주연
  6. * 작 성 자 : 손주연
  7. * 작 성 일 : 2007.03.13
  8. * 수정이력 : 2007.10.04 김다영 화면권한추가
  9. * 기 타 :
  10. -->
  11. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
  12. <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events">
  13. <xhtml:head>
  14. <xhtml:title>Untitle</xhtml:title>
  15. <model id="model1">
  16. <instance id="instance1">
  17. <root xmlns="">
  18. <main>
  19. <judgexmpcdlst>
  20. <item>
  21. <sel/>
  22. <judgexmpcd/>
  23. <judghangshrtcnts/>
  24. <judgengshrtcnts/>
  25. <judgexmpgrpcd/>
  26. <judgexmpgrpnm/>
  27. <lastupdtrid/>
  28. <lastupdtdt/>
  29. </item>
  30. </judgexmpcdlst>
  31. <judgexmpdetl>
  32. <item>
  33. <judgexmpcd/>
  34. <judghangshrtcnts/>
  35. <judgengshrtcnts/>
  36. <useyn/>
  37. <judghangcnts/>
  38. <judgengcnts/>
  39. </item>
  40. <itemsick>
  41. <sickcd/>
  42. <sicknm/>
  43. <judgcd/>
  44. <cmpycd/>
  45. </itemsick>
  46. <itemtest>
  47. <testcd/>
  48. <testnm/>
  49. <instcd/>
  50. <healexamflag/>
  51. <judgexmpcd/>
  52. </itemtest>
  53. </judgexmpdetl>
  54. </main>
  55. <send>
  56. <srchjudgexmpcd/>
  57. <srchjudgexmpcnts/>
  58. <srchjudgexmpcd2/>
  59. <srchhealexamdetlflag/>
  60. <save>
  61. <savesick/>
  62. <healexamflag/>
  63. <mode/>
  64. </save>
  65. <srchinstcd/>
  66. <srchhealexamflag/>
  67. <srchjudgexmpcd2/>
  68. <savesub>
  69. <savetest/>
  70. <judgcd/>
  71. <instcd/>
  72. <healexamflag/>
  73. </savesub>
  74. <savegrp>
  75. <healexamflag/>
  76. <instcd/>
  77. <grpdata/>
  78. </savegrp>
  79. </send>
  80. <init>
  81. <baseinfo>
  82. <hedetflaglst>
  83. <A0070/>
  84. </hedetflaglst>
  85. </baseinfo>
  86. </init>
  87. <hidden>
  88. <testlst>
  89. <itemtest/>
  90. </testlst>
  91. <cnt/>
  92. </hidden>
  93. <source>
  94. <grdid/>
  95. </source>
  96. <temp>
  97. <okflag/>
  98. <instcd/>
  99. <healexamflag/>
  100. <testcd/>
  101. <judgexmpcd/>
  102. </temp>
  103. <popup>
  104. <item>
  105. <label>판정그룹등록</label>
  106. <func>addjudgegrp</func>
  107. </item>
  108. <item>
  109. <label>판정그룹삭제</label>
  110. <func>deljudgegrp</func>
  111. </item>
  112. <jugdgexmp>
  113. <judgexmpgrpcd/>
  114. <judgexmpgrpnm/>
  115. </jugdgexmp>
  116. </popup>
  117. </root>
  118. </instance>
  119. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  120. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  121. <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
  122. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  123. <script type="javascript" src="../../../ast/healexamweb/js/AHA001.js"/>
  124. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  125. <submission id="TRAHB00801" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/judgexmpcdlst"/>
  126. <submission id="TRAHB00802" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/judgexmpdetl"/>
  127. <submission id="TXAHB00801" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save" replace="instance" resultref="/root/hidden"/>
  128. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
  129. <script type="javascript" ev:event="xforms-ready">
  130. <![CDATA[
  131. fGetJudgExmpList();
  132. //화면권한추가
  133. btn_search.disabled = ! checkAuth("R");
  134. btn_save.disabled = ! checkAuth("X");
  135. btn_clear.disabled = ! checkAuth("X");
  136. btn_del.disabled = ! checkAuth("X");
  137. ]]>
  138. </script>
  139. <submission id="TXAHB00802" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/judgexmpdetl/itemtest" resultref="/root/hidden/testlst"/>
  140. <submission id="TXAHB00803" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/temp" replace="instance" resultref="/root/temp/delresult"/>
  141. <submission id="TXAHB00804" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savegrp" resultref="/root/hidden/cnt"/>
  142. </model>
  143. <script type="javascript">
  144. <![CDATA[
  145. function fGetJudgExmpList(){
  146. fInit(false);
  147. model.removeNodeset("/root/main/judgexmpcdlst/item");
  148. model.setValue("/root/send/srchinstcd", getUserInfo("dutplceinstcd"));
  149. model.setValue("/root/send/srchhealexamflag",fGetHealExamFlag());
  150. zbcfGetCodeList( new Array("A0070"), new Array( "/root/init/baseinfo/hedetflaglst"));
  151. if(fGetHealExamFlag() == "G"){
  152. caption13.attribute("visibility") = "hidden";
  153. cmb_healexamdetlflag.attribute("visibility") = "hidden";
  154. caption15.attribute("visibility") = "hidden";
  155. cmb_healexamdetlflag2.attribute("visibility") = "hidden";
  156. model.setValue("/root/send/srchhealexamdetlflag", cmb_healexamdetlflag2.value);
  157. }else{
  158. caption13.attribute("visibility") = "hidden";
  159. cmb_healexamdetlflag.attribute("visibility") = "hidden";
  160. caption15.attribute("visibility") = "hidden";
  161. cmb_healexamdetlflag2.attribute("visibility") = "hidden";
  162. }
  163. submit("TRAHB00801");
  164. }
  165. function fInit(vInput){
  166. ipt_exmpcd.disabled = false;
  167. if( vInput == false ) {
  168. model.removeNodeset("/root/main/judgexmpcdlst/item");
  169. }
  170. model.removeNodeset(grd_sicklst.nodeset);
  171. model.removeNodeset(grd_testlst.nodeset);
  172. model.resetInstanceNode("/root/main/judgexmpdetl/item");
  173. model.setFocus("ipt_exmpcd");
  174. model.refresh();
  175. }
  176. function fGetExmpDetlInfo(bCopy){
  177. var idx = grd_judgexmplst.Row;
  178. if( idx < 1) return ;
  179. ipt_exmpcd.disabled = !bCopy ;
  180. model.setValue("/root/send/srchinstcd",getUserInfo("dutplceinstcd"));
  181. model.setValue("/root/send/srchhealexamflag",fGetHealExamFlag());
  182. model.setValue("/root/send/srchjudgexmpcd2",model.getValue("/root/main/judgexmpcdlst/item[" +idx+ "]/judgexmpcd" ));
  183. submit("TRAHB00802");
  184. if(bCopy == true ) {
  185. model.setValue("/root/main/judgexmpdetl/item/judgexmpcd","");
  186. model.refresh();
  187. model.setFocus("ipt_exmpcd");
  188. }
  189. }
  190. function fCheckVal(){
  191. var vCd = model.getValue("/root/main/judgexmpdetl/item/judgexmpcd");
  192. if(vCd == "") {
  193. messageBox("예문코드는","I003");
  194. model.setFocus("ipt_exmpcd");
  195. }
  196. return true;
  197. }
  198. function fSaveExmp(vDel){
  199. if(vDel == true ) {
  200. if ( messageBox("판정소견정보를","Q001") !=6 ) return ;
  201. }
  202. else {
  203. if ( messageBox("판정소견정보를","Q002") !=6 ) return ;
  204. }
  205. if(!fCheckVal()) return ;
  206. model.copyNode("/root/send/save", "/root/main/judgexmpdetl/item");
  207. var vMode = "/root/send/save/mode";
  208. model.makeNode(vMode);
  209. if( ipt_exmpcd.disabled == true ){
  210. //update
  211. if(vDel == false ) {
  212. model.setValue(vMode, "u");
  213. }
  214. else {
  215. model.setValue(vMode, "d");
  216. }
  217. }
  218. else {
  219. //update
  220. model.setValue(vMode, "i");
  221. }
  222. model.makeNode("/root/send/save/healexamflag");
  223. model.setValue("/root/send/save/healexamflag",fGetHealExamFlag());
  224. model.makeNode("/root/send/save/savesick");
  225. model.setValue("/root/send/save/savesick", grd_sicklst.getUpdateData());
  226. if(fGetHealExamFlag() == "G"){
  227. model.makeNode("/root/send/save/healexamdetlflag");
  228. model.setValue("/root/send/save/healexamdetlflag", cmb_healexamdetlflag.value);
  229. }
  230. if( submit("TXAHB00801") == true ){
  231. //fGetJudgExmpList();
  232. fGetExmpDetlInfo(false);
  233. }
  234. }
  235. // 예문코드와 매칭되는 검사코드를 저장,삭제한다.
  236. function fExeTestCd() {
  237. var idx = grd_judgexmplst.Row;
  238. if( idx < 1) return ;
  239. var itest = grd_testlst.rows;
  240. for(var i=1;i<itest;i++){
  241. model.makeValue("/root/main/judgexmpdetl/itemtest[" +i+ "]/healexamflag", fGetHealExamFlag());;
  242. model.makeValue("/root/main/judgexmpdetl/itemtest[" +i+ "]/judgcd", model.getValue("/root/main/judgexmpcdlst/item[" +idx+ "]/judgexmpcd" ));
  243. model.makeValue("/root/main/judgexmpdetl/itemtest[" +i+ "]/instcd", getUserInfo("dutplceinstcd"));
  244. }
  245. var ret = submit("TXAHB00802");
  246. }
  247. /*****************************************************************************************************************************
  248. * 판정소견그룹을 등록,삭제 한다.
  249. ******************************************************************************************************************************/
  250. function fSetJudgeGrp(vMode) {
  251. var selIdxs = grd_judgexmplst.selectedRows;
  252. // 판정소견그룹을 등록한다.
  253. if(vMode == "A") {
  254. // 팝업화면을 나타낸다
  255. grp_judgexmpgrp.visible = true;
  256. //초기화
  257. model.setValue("/root/popup/jugdgexmp/judgexmpgrpcd","");
  258. model.setValue("/root/popup/jugdgexmp/judgexmpgrpnm","");
  259. }else if(vMode == "D") {
  260. // 선택한 row의 그룹코드,명을 삭제한다.
  261. for(var i=0; i < selIdxs; i++) {
  262. var idx = grd_judgexmplst.selectedRow(i);
  263. grd_judgexmplst.valueMatrix(idx,grd_judgexmplst.colRef("judgexmpgrpcd")) = "";
  264. grd_judgexmplst.valueMatrix(idx,grd_judgexmplst.colRef("judgexmpgrpnm")) = "";
  265. grd_judgexmplst.addStatus(idx, "update");
  266. }
  267. model.setValue("/root/send/savegrp/healexamflag" , model.getValue("/root/send/srchhealexamflag"));
  268. model.setValue("/root/send/savegrp/instcd" , model.getValue("/root/send/srchinstcd"));
  269. model.setValue("/root/send/savegrp/grpdata", grd_judgexmplst.getUpdateData());
  270. if(submit("TXAHB00804")) { grd_judgexmplst.clearStatus()}
  271. }
  272. }
  273. ]]>
  274. </script>
  275. </xhtml:head>
  276. <xhtml:body guideline="1,1195;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  277. <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
  278. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:119px; height:14px; ">판정소견예문관리</caption>
  279. </group>
  280. <group id="grp_biz" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
  281. <caption id="caption1" class="tit_2" style="left:720px; top:55px; width:78px; height:14px; ">예문입력</caption>
  282. <datagrid id="grd_judgexmplst" nodeset="/root/main/judgexmpcdlst/item" caption="sel^소견코드^한글소견^영문소견^소견그룹코드^소견그룹명^최종수정자^최종수정일시" colsep="^" colwidth="42, 66, 220, 190, 100, 100, 80, 100" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" selectionmode="listbox" style="left:0px; top:75px; width:710px; height:650px; ">
  283. <col ref="sel" visibility="hidden"/>
  284. <col ref="judgexmpcd"/>
  285. <col ref="judghangshrtcnts"/>
  286. <col ref="judgengshrtcnts"/>
  287. <col ref="judgexmpgrpcd"/>
  288. <col ref="judgexmpgrpnm"/>
  289. <col ref="lastupdtrid"/>
  290. <col ref="lastupdtdt" format="yyyy-mm-dd hh:nn:ss"/>
  291. <script type="javascript" ev:event="ondblclick">
  292. <![CDATA[
  293. fGetExmpDetlInfo(false);
  294. ]]>
  295. </script>
  296. <script type="javascript" ev:event="DOMFocusOut">
  297. <![CDATA[
  298. window.setPopupMenu(false);
  299. ]]>
  300. </script>
  301. <script type="javascript" ev:event="onaftersort">
  302. <![CDATA[
  303. grd_judgexmplst.gridToInstance();
  304. ]]>
  305. </script>
  306. <script type="javascript" ev:event="onmousedown">
  307. <![CDATA[
  308. if(event.button == "3") {
  309. if(grd_judgexmplst.isCell(event.target) && grd_judgexmplst.row < grd_judgexmplst.rows) {
  310. window.setPopupMenu(true,"/root/popup/item","label","func",true);
  311. }else {
  312. window.setPopupMenu(false);
  313. }
  314. }
  315. ]]>
  316. </script>
  317. </datagrid>
  318. <line id="line10" class="line_3" style="x1:715px; y1:725px; x2:1194px; y2:725px; "/>
  319. <line id="line1" class="line_1" style="x1:715px; y1:70px; x2:1194px; y2:70px; "/>
  320. <line id="line2" class="line_2" style="x1:715px; y1:97px; x2:1194px; y2:97px; "/>
  321. <line id="line3" class="line_2" style="x1:715px; y1:121px; x2:1194px; y2:121px; "/>
  322. <caption id="caption11" class="cell_1" style="left:715px; top:99px; width:79px; height:23px; vertical-align:middle; ">한글소견</caption>
  323. <caption id="caption7" class="cell_1" style="left:715px; top:75px; width:79px; height:23px; font-family:돋움; vertical-align:middle; ">예문코드</caption>
  324. <caption id="caption3" class="tit_2" style="left:5px; top:55px; width:90px; height:14px; ">예문내역</caption>
  325. <line id="line4" class="line_1" style="x1:0px; y1:70px; x2:710px; y2:70px; "/>
  326. <line id="line5" class="line_2" style="x1:715px; y1:145px; x2:1194px; y2:145px; "/>
  327. <caption id="caption9" class="cell_1" style="left:715px; top:346px; width:79px; height:184px; vertical-align:middle; ">한글판정소견</caption>
  328. <line id="line8" class="line_2" style="x1:715px; y1:254px; x2:1194px; y2:254px; "/>
  329. <caption id="caption18" class="cell_1" style="left:715px; top:147px; width:79px; height:108px; vertical-align:middle; ">질환코드</caption>
  330. <caption id="caption14" class="cell_1" style="left:715px; top:123px; width:79px; height:23px; vertical-align:middle; ">영문소견</caption>
  331. <input id="ipt_exmpcd" ref="/root/main/judgexmpdetl/item/judgexmpcd" class="input_essential" style="left:797px; top:76px; width:123px; height:19px; ">
  332. <script type="javascript" ev:event="onkeyup">
  333. <![CDATA[
  334. if( event.keyCode == 13) {
  335. model.setFocus("ipt_shrthang");
  336. }
  337. ]]>
  338. </script>
  339. </input>
  340. <input id="ipt_shrthang" ref="/root/main/judgexmpdetl/item/judghangshrtcnts" class="input" style="left:797px; top:100px; width:392px; height:19px; ">
  341. <script type="javascript" ev:event="onkeyup">
  342. <![CDATA[
  343. if( event.keyCode == 13) {
  344. model.setFocus("ipt_shrteng");
  345. }
  346. ]]>
  347. </script>
  348. </input>
  349. <input id="ipt_shrteng" ref="/root/main/judgexmpdetl/item/judgengshrtcnts" class="input" style="left:797px; top:124px; width:392px; height:19px; ">
  350. <script type="javascript" ev:event="onkeyup">
  351. <![CDATA[
  352. if( event.keyCode == 13) {
  353. model.setFocus("tar_hangcnts");
  354. }
  355. ]]>
  356. </script>
  357. </input>
  358. <textarea id="tar_hangcnts" ref="/root/main/judgexmpdetl/item/judghangcnts" scroll="vertical" style="left:797px; top:346px; width:392px; height:181px; "/>
  359. <textarea id="tar_engcnts" ref="/root/main/judgexmpdetl/item/judgengcnts" scroll="vertical" imemode="alpha" style="left:797px; top:532px; width:392px; height:191px; "/>
  360. <button id="btn_sickcd" class="btn2_letter4" style="left:720px; top:189px; width:64px; height:19px; ">
  361. <caption>질환코드</caption>
  362. <script type="javascript" ev:event="DOMActivate">
  363. <![CDATA[
  364. var cnt = grd_sicklst.rows;
  365. ahafGetSickCd("SMAHB00800", "", "", cnt , grd_sicklst.nodeset );
  366. if( model.getValue( "/root/temp/okflag") == "Y" ){
  367. for( var i = cnt ; i < grd_sicklst.rows ; i++){
  368. grd_sicklst.addStatus(i, "insert");
  369. }
  370. }
  371. ]]>
  372. </script>
  373. </button>
  374. <caption id="caption10" class="cell_1" style="left:715px; top:531px; width:79px; height:194px; vertical-align:middle; ">영문판정소견</caption>
  375. <line id="line9" class="line_2" style="x1:715px; y1:529px; x2:1194px; y2:529px; "/>
  376. <group id="grp_search" style="left:0px; top:10px; width:1194px; height:35px; vertical-align:top; ">
  377. <shape id="roundrect3" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1194px; height:35px; "/>
  378. <caption id="caption21" class="search_name" style="left:16px; top:8px; width:86px; height:17px; ">예문코드 :</caption>
  379. <button id="btn_search" class="btn1_letter2" style="left:1122px; top:7px; width:56px; height:22px; ">
  380. <caption>조회</caption>
  381. <script type="javascript" ev:event="DOMActivate">
  382. <![CDATA[
  383. fGetJudgExmpList();
  384. ]]>
  385. </script>
  386. </button>
  387. <line id="line18" class="line_4" style="x1:1104px; y1:7px; x2:1104px; y2:29px; border-left-style:solid; "/>
  388. <input id="ipt_examcnts" ref="/root/send/srchjudgexmpcnts" class="input_search" style="left:420px; top:8px; width:290px; height:19px; ">
  389. <script type="javascript" ev:event="onkeyup">
  390. <![CDATA[
  391. inputEnterKey("btn_search", "DOMActivate");
  392. ]]>
  393. </script>
  394. </input>
  395. <input id="ipt_examcd" ref="/root/send/srchjudgexmpcd" class="input_search" style="left:105px; top:8px; width:165px; height:19px; ">
  396. <script type="javascript" ev:event="onkeyup">
  397. <![CDATA[
  398. inputEnterKey("btn_search", "DOMActivate");
  399. ]]>
  400. </script>
  401. </input>
  402. <caption id="caption22" class="search_name" style="left:330px; top:8px; width:86px; height:17px; ">단문내용:</caption>
  403. <caption id="caption13" class="search_name" style="left:770px; top:8px; width:86px; height:17px; ">건진상세:</caption>
  404. </group>
  405. <datagrid id="grd_sicklst" nodeset="/root/main/judgexmpdetl/itemsick" caption="질환코드^질환명^판정코드^사업체코드" colsep="^" colwidth="83, 168, 100, 100" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:797px; top:165px; width:392px; height:87px; ">
  406. <col ref="sickcd"/>
  407. <col ref="sicknm"/>
  408. <col ref="judgcd" type="combo">
  409. <choices>
  410. <item>
  411. <label>A</label>
  412. <value>A</value>
  413. </item>
  414. <item>
  415. <label>B</label>
  416. <value>B</value>
  417. </item>
  418. <item>
  419. <label>C</label>
  420. <value>C</value>
  421. </item>
  422. <item>
  423. <label>R</label>
  424. <value>R</value>
  425. </item>
  426. </choices>
  427. </col>
  428. <col ref="cmpycd" type="input" visibility="visible"/>
  429. </datagrid>
  430. <caption id="caption2" class="cell_1" style="left:923px; top:75px; width:59px; height:23px; font-family:돋움; vertical-align:middle; ">사용여부</caption>
  431. <select id="chk_useyn" ref="/root/main/judgexmpdetl/item/useyn" overflow="visible" appearance="full" style="left:985px; top:77px; width:45px; height:20px; border-style:none; ">
  432. <choices>
  433. <item>
  434. <label>사용</label>
  435. <value>Y</value>
  436. </item>
  437. </choices>
  438. </select>
  439. <button id="btn_rsltdel" class="btn2_letter5" style="left:1114px; top:145px; width:75px; height:19px; ">
  440. <caption>선택행삭제</caption>
  441. <script type="javascript" ev:event="DOMActivate">
  442. <![CDATA[
  443. deleteSelectedRows(grd_sicklst, true);
  444. ]]>
  445. </script>
  446. </button>
  447. <button id="btn_copy" class="btn2_letter3" style="left:657px; top:50px; width:53px; height:19px; ">
  448. <caption>행복사</caption>
  449. <script type="javascript" ev:event="DOMActivate">
  450. <![CDATA[
  451. fGetExmpDetlInfo(true);
  452. ]]>
  453. </script>
  454. </button>
  455. <caption id="caption4" class="cell_1" style="left:715px; top:256px; width:79px; height:89px; vertical-align:middle; ">질환코드</caption>
  456. <line id="line6" class="line_2" style="x1:715px; y1:344px; x2:1194px; y2:344px; "/>
  457. <datagrid id="grd_testlst" nodeset="/root/main/judgexmpdetl/itemtest" caption="검사코드^검사명" colsep="^" colwidth="150, 200" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:797px; top:274px; width:392px; height:68px; ">
  458. <col ref="testcd"/>
  459. <col ref="testnm"/>
  460. </datagrid>
  461. <button id="ipt_testcd" class="btn2_letter4" style="left:720px; top:289px; width:64px; height:24px; ">
  462. <caption>검사코드</caption>
  463. <script type="javascript" ev:event="DOMActivate">
  464. <![CDATA[
  465. var cnt = grd_testlst.rows;
  466. var vjudgexmpcd = model.getValue("/root/main/judgexmpcdlst/item["+grd_judgexmplst.row+"]/judgexmpcd");
  467. ahafGetTestCd("SMAHB00800", "", "", cnt , grd_testlst.nodeset ,vjudgexmpcd);
  468. if( model.getValue( "/root/temp/okflag") == "Y" ){
  469. for( var i = cnt ; i < grd_testlst.rows ; i++){
  470. grd_testlst.addStatus(i, "insert");
  471. }
  472. }
  473. ]]>
  474. </script>
  475. </button>
  476. <button id="button3" class="btn2_letter6" style="left:1102px; top:254px; width:86px; height:19px; ">
  477. <caption>검사코드삭제</caption>
  478. <script type="javascript" ev:event="DOMActivate">
  479. <![CDATA[
  480. // grd_testlst.addStatus(grd_testlst.row,"delete");
  481. //fExeTestCd();
  482. deleteTest(grd_testlst.row);
  483. ]]>
  484. </script>
  485. </button>
  486. <button id="button2" class="btn2_letter6" style="left:1014px; top:254px; width:86px; height:19px; ">
  487. <caption>검사코드저장</caption>
  488. <script type="javascript" ev:event="DOMActivate">
  489. <![CDATA[
  490. fExeTestCd();
  491. ]]>
  492. </script>
  493. </button>
  494. <group id="grp_judgexmpgrp" visibility="hidden" showeffect="blend 300" style="left:280px; top:195px; width:425px; height:79px; ">
  495. <caption id="caption5" class="cell_1" style="left:0px; top:25px; width:79px; height:23px; font-family:돋움; vertical-align:middle; ">소견그룹코드</caption>
  496. <caption id="caption8" class="tit_2" style="left:5px; top:5px; width:95px; height:14px; ">소견그룹등록</caption>
  497. <line id="line7" class="line_1" style="x1:0px; y1:20px; x2:424px; y2:20px; "/>
  498. <input id="ipt_judgexmpgrpcd" ref="/root/popup/jugdgexmp/judgexmpgrpcd" class="input_essential" style="left:82px; top:26px; width:120px; height:19px; "/>
  499. <caption id="caption12" class="cell_1" style="left:205px; top:25px; width:79px; height:23px; font-family:돋움; vertical-align:middle; ">소견그룹명</caption>
  500. <input id="ipt_judgexmpgrpnm" ref="/root/popup/jugdgexmp/judgexmpgrpnm" class="input_essential" style="left:287px; top:26px; width:134px; height:19px; "/>
  501. <button id="btn_savepopup" class="btn4_letter2" style="left:365px; top:53px; width:56px; height:22px; ">
  502. <caption>저장</caption>
  503. <script type="javascript" ev:event="DOMActivate">
  504. <![CDATA[
  505. ipt_judgexmpgrpnm.refresh();
  506. var selIdxs = grd_judgexmplst.selectedRows;
  507. var judgexmpgrpcd = ipt_judgexmpgrpcd.value;
  508. var judgexmpgrpnm = ipt_judgexmpgrpnm.value;
  509. for(var i = 0; i < selIdxs; i++) {
  510. var selIdx = grd_judgexmplst.selectedRow(i);
  511. if(judgexmpgrpcd != "") grd_judgexmplst.valueMatrix(selIdx,grd_judgexmplst.colRef("judgexmpgrpcd")) = judgexmpgrpcd;
  512. if(judgexmpgrpnm != "") grd_judgexmplst.valueMatrix(selIdx,grd_judgexmplst.colRef("judgexmpgrpnm")) = judgexmpgrpnm;
  513. grd_judgexmplst.addStatus(selIdx , "update");
  514. }
  515. model.setValue("/root/send/savegrp/grpdata", grd_judgexmplst.getUpdateData());
  516. model.setValue("/root/send/savegrp/healexamflag" , model.getValue("/root/send/srchhealexamflag"));
  517. model.setValue("/root/send/savegrp/instcd" , model.getValue("/root/send/srchinstcd"));
  518. grp_judgexmpgrp.visible = false;
  519. if(submit("TXAHB00804")) {grd_judgexmplst.clearStatus()};
  520. ]]>
  521. </script>
  522. </button>
  523. <line id="line11" class="line_2" style="x1:0px; y1:48px; x2:424px; y2:48px; "/>
  524. <button id="btn_rsltexmp" class="icon_plus" style="left:408px; top:4px; width:13px; height:15px; ">
  525. <caption/>
  526. <script type="javascript" ev:event="DOMActivate">
  527. <![CDATA[
  528. grp_judgexmpgrp.visible = false;
  529. ]]>
  530. </script>
  531. </button>
  532. </group>
  533. <select1 id="cmb_healexamdetlflag" ref="/root/send/srchhealexamdetlflag" class="combo_s_essential" appearance="minimal" style="left:857px; top:18px; width:85px; height:19px; ">
  534. <choices>
  535. <itemset nodeset="/root/init/baseinfo/hedetflaglst/A0070">
  536. <label ref="cdnm"/>
  537. <value ref="cdid"/>
  538. </itemset>
  539. </choices>
  540. </select1>
  541. <caption id="caption15" class="cell_1" style="left:1033px; top:75px; width:59px; height:23px; font-family:돋움; vertical-align:middle; ">건진상세</caption>
  542. <select1 id="cmb_healexamdetlflag2" ref="/root/send/srchhealexamdetlflag" class="combo_s_essential" appearance="minimal" style="left:1098px; top:76px; width:91px; height:19px; ">
  543. <choices>
  544. <itemset nodeset="/root/init/baseinfo/hedetflaglst/A0070">
  545. <label ref="cdnm"/>
  546. <value ref="cdid"/>
  547. </itemset>
  548. </choices>
  549. </select1>
  550. </group>
  551. <group id="grp_btn" style="left:0px; top:757px; width:1195px; height:27px; ">
  552. <button id="btn_save" class="btn4_letter2" style="left:1007px; top:5px; width:56px; height:22px; ">
  553. <caption>저장</caption>
  554. <script type="javascript" ev:event="DOMActivate">
  555. <![CDATA[
  556. for ( var i = 1; i < grd_sicklst.rows; i ++){
  557. if (model.getValue("/root/main/judgexmpdetl/itemsick[" + i + "]/sickcd") == ""){
  558. messageBox("질환코드는 필수 선택항목 입니다.", "E999", "");
  559. return;
  560. }
  561. if (model.getValue("/root/main/judgexmpdetl/itemsick[" + i + "]/judgcd") == ""){
  562. messageBox("판정코드는 필수 선택항목 입니다.", "E999", "");
  563. return;
  564. }
  565. }
  566. var irow = grd_judgexmplst.row;
  567. fSaveExmp(false);
  568. btn_search.dispatch("DOMActivate");
  569. grd_judgexmplst.row = irow;
  570. grd_judgexmplst.dispatch("ondblclick");
  571. ]]>
  572. </script>
  573. </button>
  574. <button id="btn_del" class="btn4_letter2" style="left:1067px; top:5px; width:56px; height:22px; ">
  575. <caption>삭제</caption>
  576. <script type="javascript" ev:event="DOMActivate">
  577. <![CDATA[
  578. fSaveExmp(true);
  579. ]]>
  580. </script>
  581. </button>
  582. <button id="btn_clear" class="btn4_letter3" style="left:1126px; top:5px; width:68px; height:22px; ">
  583. <caption>초기화</caption>
  584. <script type="javascript" ev:event="DOMActivate">
  585. <![CDATA[
  586. fInit(true);
  587. ]]>
  588. </script>
  589. </button>
  590. </group>
  591. <script type="javascript" ev:event="onmenu">
  592. <![CDATA[
  593. if(event.description == "addjudgegrp") {
  594. fSetJudgeGrp("A");
  595. }
  596. if(event.description == "deljudgegrp") {
  597. fSetJudgeGrp("D");
  598. }
  599. ]]>
  600. </script>
  601. </xhtml:body>
  602. </xhtml:html>